//
//  HMTabBarContentView.h
//  Pods
//
//  Created by WangYong on 2017/9/11.
//
//

#import <UIKit/UIKit.h>

@class HMTabBarContentView;

//数据提供
@protocol HMTabBarContentViewDataSource <NSObject>

@required

//提供内容项的数量

- (NSInteger )numberOfItemsInTabBarContentView: (HMTabBarContentView*)tabBarContentView;

//提供选项的标题
- (NSString *)tabBarContentView :(HMTabBarContentView *)tabBarContentView titleAtItemIndex :(NSInteger)index;

//提供选项的内容
- (UIView*)tabBarContentView : (HMTabBarContentView *)tabBarContentView contentViewAtItemIndex :(NSInteger)index;

@optional

@end

//提供样式和交互
@protocol HMTabBarContentViewDelegate <NSObject>

@required

@optional
//提供导航条的高度
- (CGFloat)tabBarHeightInTabBarContentView:(HMTabBarContentView *)tabBarContentView;

//提供高亮的选中导航条选项视图
- (UIView *)heightLightTabBarItemViewInTabBarContentView:(HMTabBarContentView*) tabBarContentView;

//处理选中事件
- (void)tabBarContentView:(HMTabBarContentView *)tabBarContentView didSelectedAtIndex:(NSInteger) index;

@end


@interface HMTabBarContentView : UIView

//数据源
@property (weak,nonatomic) id<HMTabBarContentViewDataSource> datasource;

//代理
@property(weak,nonatomic) id <HMTabBarContentViewDelegate> delegate;

//刷新数据
- (void)reloadData;

@end
